Repository navigation
Post-quantum remediation: 7 changes from Quill - #2
Open
CadenKacmarynski wants to merge 1 commit into
Open
CadenKacmarynski wants to merge 1 commit into
CadenKacmarynski wants to merge 1 commit into
Conversation
From Quill hunt hunt_4mc6nbmt8 of Ghost.
E2E Tests FailedTo view the Playwright test report locally, run: REPORT_DIR=$(mktemp -d) && gh run download 37980021839 -n playwright-report -D "$REPORT_DIR" && npx playwright show-report "$REPORT_DIR" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Post-quantum remediation from a Quill hunt of Ghost: 7 changes to quantum-vulnerable or weak cryptography.
ghost/core/test/utils/fixtures/export/v4_export.json:3582ghost/core/core/frontend/services/asset-hash/index.js:82ghost/core/core/frontend/services/rss/cache.js:10ghost/core/core/server/web/admin/controller.js:35ghost/core/core/server/web/admin/controller.js:36compose.dev.yaml:101ghost/core/core/frontend/services/rss/cache.js:11crypto.timingSafeEqualto prevent timing attacks. Note: The previous line (line 10) uses MD5,Also needed (outside the changed lines):
ghost/core/test/utils/fixtures/export/v4_export.json: This is a test fixture file. The actual key data should be generated using a library like @noble/post-quantum or BouncyCastle depending on the Ghost core implementation.ghost/core/core/frontend/services/asset-hash/index.js: The result is truncated to GLOBAL_HASH_LENGTH (10 characters) as per the original logic, which is acceptable for a non-cryptographic asset cache buster.ghost/core/core/server/web/admin/controller.js: This is a standard Node.js crypto API replacement.ghost/core/core/server/web/admin/controller.js: The replacement combines the hash creation and update into a single line to maintain the logic flow while correcting the algorithm in the preceding line (35) which was implicitly part of the MD5 chain. However, since only line 36 was flaggecompose.dev.yaml: This is a configuration file. Enabling TLS verification is the prerequisite for any cryptographic migration. The transition to ML-DSA-65 specifically requires the underlying OS/Node.js version to support the algorithm and the use of ML-DSA-ghost/core/core/frontend/services/rss/cache.js: This fix assumescryptois available in the scope (it is used in line 10). Since the inputs to timingSafeEqual must be Buffers of the same length, and both are hex strings from the same hashing algorithm, this is safe.Model-drafted changes were not compiled here: review them before merging.